package com.ambow.service;

import com.ambow.entity.User;
import com.ambow.utils.PageResults;

public interface UserService {
	//验证登录
	User login(String hql, String[] param);
	//注册
	boolean add(User user);
	//根据id查询
	User queryById(Class<User> class1, int i);
	//更新
	boolean update(User user);
	//分页查询
	PageResults<User> getPageByFetchedHql(String hql, String countHql, Integer pageNo, Integer pageSize);

}
